import request from '@/utils/request'

// 查询项目入库单详细
export function getDealWfStorage(id) {
  return request({
    url: '/storage/dealWfStorage/' + id,
    method: 'get'
  })
}

// 根据流程节点ID初始化记录
export function getByWfNodeId(wfNodeId) {
  return request({
    url: '/storage/dealWfStorage/getByWfNodeId/' + wfNodeId,
    method: 'get'
  })
}

// 保存项目入库单
export function saveDealWfStorage(data) {
  return request({
    url: '/storage/dealWfStorage/save',
    method: 'post',
    data: data
  })
}

// 删除项目主体
export function delDealWfStorageInvestment(id) {
  return request({
    url: '/investment/dealWfStorageInvestment/' + id,
    method: 'delete'
  })
}
